From 713e2687782dbd4d00714b31cf0ea7a802929607 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Mon, 16 Jan 2006 22:06:00 +0000 Subject: [PATCH] Compiler warning fixes. --- gpsbabel/Makefile | 2 +- gpsbabel/compegps.c | 4 ++-- gpsbabel/cst.c | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gpsbabel/Makefile b/gpsbabel/Makefile index e45d60765..e98558f5d 100644 --- a/gpsbabel/Makefile +++ b/gpsbabel/Makefile @@ -221,7 +221,7 @@ gdb.o: gdb.c defs.h queue.h gbtypes.h garmin_tables.h jeeps/gpsmath.h \ jeeps/gpsproj.h jeeps/gpsnmeafmt.h jeeps/gpsnmeaget.h geo.o: geo.c defs.h queue.h gbtypes.h xmlgeneric.h geoniche.o: geoniche.c defs.h queue.h gbtypes.h coldsync/palm.h \ - coldsync/pdb.h + coldsync/pdb.h jeeps/gpsmath.h globals.o: globals.c defs.h queue.h gbtypes.h glogbook.o: glogbook.c defs.h queue.h gbtypes.h xmlgeneric.h google.o: google.c defs.h queue.h gbtypes.h xmlgeneric.h diff --git a/gpsbabel/compegps.c b/gpsbabel/compegps.c index bbdaea47e..ed0cf7c57 100644 --- a/gpsbabel/compegps.c +++ b/gpsbabel/compegps.c @@ -105,7 +105,7 @@ static waypoint* parse_wpt(char *buff) { int col = -1; - char *c, *cend, *cx; + char *c, *cx; waypoint *wpt = waypt_new(); c = strstr(buff, "A "); @@ -331,7 +331,7 @@ compegps_data_read(void) { char buff[1024]; int line = 0; - waypoint *wpt; + waypoint *wpt = NULL; route_head *route = NULL; route_head *track = NULL; diff --git a/gpsbabel/cst.c b/gpsbabel/cst.c index e707c3cd3..5026a3bca 100644 --- a/gpsbabel/cst.c +++ b/gpsbabel/cst.c @@ -204,7 +204,6 @@ cst_data_read(void) if (*cin == ';') { int data = 0; - int note = 0; if (*(cin+1) != '\xA4') continue; @@ -242,7 +241,6 @@ cst_data_read(void) int interp, i; char name[256]; char *pow; - int column = 0; if (data_lines < 0) { @@ -265,7 +263,7 @@ cst_data_read(void) &wpt->longitude, &wpt->latitude, &wpt->altitude, - &interp, &name)) + &interp, name)) { fatal(MYNAME ": Could not interprete line %d!\n", line); } -- 2.30.2